<?php
//通用CSS
if (isset($include_header) && $include_header === true) : ?>
    <meta charset="utf-8">
    <!-- 360浏览器急速模式 -->
    <meta name="renderer" content="webkit"/>
    <meta name="force-rendering" content="webkit"/>
    <!-- 避免IE使用兼容模式 -->
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="Cache-Control" content="no-cache, must-revalidate">
    <meta http-equiv="expires" content="0">
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <meta name="description" content="<?=params('site_name')?>">
    <title><?= params('site_name') ?></title>
    <!--[if lt IE 9]>
    <meta http-equiv="refresh" content="0;ie.html"/>
    <![endif]-->
    <link rel="shortcut icon" href="/favicon.ico">
    <link href="/css/bootstrap.min.css" rel="stylesheet"/>
    <link href="/css/font-awesome.min.css" rel="stylesheet"/>
    <!-- bootstrap-table 表格插件样式 -->
    <link href="/ajax/libs/bootstrap-table/bootstrap-table.min.css" rel="stylesheet"/>
    <link href="/css/animate.css" rel="stylesheet"/>
    <link href="/css/style.css" rel="stylesheet"/>
    <link href="/xunshan/css/xs-ui.css" rel="stylesheet"/>
<?php endif; ?>

<?php
//通用JS
if (isset($include_footer) && $include_footer === true) : ?>
    <script src="/js/jquery.min.js"></script>
    <script src="/js/bootstrap.min.js"></script>
    <!-- bootstrap-table 表格插件 -->
    <script src="/ajax/libs/bootstrap-table/bootstrap-table.min.js?v=20191219"></script>
    <script src="/ajax/libs/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
    <script src="/ajax/libs/bootstrap-table/extensions/mobile/bootstrap-table-mobile.js"></script>
    <script src="/ajax/libs/bootstrap-table/extensions/toolbar/bootstrap-table-toolbar.min.js"></script>
    <script src="/ajax/libs/bootstrap-table/extensions/columns/bootstrap-table-fixed-columns.js"></script>
    <!-- jquery-validate 表单验证插件 -->
    <script src="/ajax/libs/validate/jquery.validate.min.js"></script>
    <script src="/ajax/libs/validate/messages_zh.min.js"></script>
    <script src="/ajax/libs/validate/jquery.validate.extend.js"></script>
    <!-- jquery-validate 表单树插件 -->
    <script src="/ajax/libs/bootstrap-treetable/bootstrap-treetable.js"></script>
    <!-- jquery-export 表格导出插件 -->
    <script src="/ajax/libs/bootstrap-table/extensions/export/bootstrap-table-export.js"></script>
    <script src="/ajax/libs/bootstrap-table/extensions/export/tableExport.js"></script>
    <!-- 遮罩层 -->
    <script src="/ajax/libs/blockUI/jquery.blockUI.js"></script>
    <script src="/ajax/libs/iCheck/icheck.min.js"></script>
    <script src="/ajax/libs/layer/layer.min.js"></script>
    <script src="/ajax/libs/layui/layui.js"></script>
    <script src="/xunshan/js/common.js"></script>
    <script src="/xunshan/js/xs-ui.js"></script>
<?php endif; ?>

<?php if (isset($include_ztree) && $include_ztree === true) : ?>
    <!-- ztree树插件 -->
    <link href="/ajax/libs/jquery-ztree/3.5/css/metro/zTreeStyle.css" rel="stylesheet"/>
    <script src="/ajax/libs/jquery-ztree/3.5/js/jquery.ztree.all-3.5.js"></script>
<?php endif; ?>

<?php if (isset($include_select2) && $include_select2 === true) : ?>
    <!-- select2下拉框插件 -->
    <link href="/ajax/libs/select2/select2.min.css" rel="stylesheet"/>
    <link href="/ajax/libs/select2/select2-bootstrap.css" rel="stylesheet"/>
    <script src="/ajax/libs/select2/select2.min.js"></script>
<?php endif; ?>

<?php if (isset($include_bootstrap_select) && $include_bootstrap_select === true) : ?>
    <!-- bootstrap-select下拉框插件 -->
    <link href="/ajax/libs/bootstrap-select/bootstrap-select.css" rel="stylesheet"/>
    <script src="/ajax/libs/bootstrap-select/bootstrap-select.js"></script>
<?php endif; ?>

<?php if (isset($include_datetimepicker) && $include_datetimepicker === true) : ?>
    <!-- datetimepicker日期和时间插件 -->
    <link href="/ajax/libs/datapicker/bootstrap-datetimepicker.min.css" rel="stylesheet"/>
    <script src="/ajax/libs//datapicker/bootstrap-datetimepicker.min.js"></script>
<?php endif; ?>

<?php if (isset($include_layout) && $include_layout === true) : ?>
    <!-- ui布局插件 -->
    <link href="/ajax/libs/jquery-layout/jquery.layout-latest.css" rel="stylesheet"/>
    <script src="/ajax/libs/jquery-layout/jquery.layout-latest.js"></script>
<?php endif; ?>

<?php if (isset($include_summernote) && $include_summernote === true) : ?>
    <!-- summernote富文本编辑器插件 -->
    <link href="/ajax/libs/summernote/summernote.css" rel="stylesheet"/>
    <link href="/ajax/libs/summernote/summernote-bs3.css" rel="stylesheet"/>
    <script src="/ajax/libs/summernote/summernote.min.js"></script>
    <script src="/ajax/libs/summernote/summernote-zh-CN.js"></script>
<?php endif; ?>

<?php if (isset($include_cropbox) && $include_cropbox === true) : ?>
    <!-- cropbox图像裁剪插件 -->
    <link href="/ajax/libs/cropbox/cropbox.css" rel="stylesheet"/>
    <script src="/ajax/libs/cropbox/cropbox.js"></script>
<?php endif; ?>

<?php if (isset($include_jasny) && $include_jasny === true) : ?>
    <!-- jasny功能扩展插件 -->
    <link href="/ajax/libs/jasny/jasny-bootstrap.min.css" rel="stylesheet"/>
    <script src="/ajax/libs/jasny/jasny-bootstrap.min.js"></script>
<?php endif; ?>

<?php if (isset($include_fileinput) && $include_fileinput === true) : ?>
    <!-- fileinput文件上传插件 -->
    <link href="/ajax/libs/bootstrap-fileinput/fileinput.min.css" rel="stylesheet"/>
    <script src="/ajax/libs/bootstrap-fileinput/fileinput.min.js"></script>
<?php endif; ?>

<?php if (isset($include_duallistbox) && $include_duallistbox === true) : ?>
    <!-- duallistbox双列表框插件 -->
    <link href="/ajax/libs/duallistbox/bootstrap-duallistbox.min.css" rel="stylesheet"/>
    <script src="/ajax/libs/duallistbox/bootstrap-duallistbox.min.js"></script>
<?php endif; ?>

<?php if (isset($include_suggest) && $include_suggest === true) : ?>
    <!-- suggest搜索自动补全 -->
    <script src="/ajax/libs/suggest/bootstrap-suggest.min.js"></script>
<?php endif; ?>

<?php if (isset($include_typeahead) && $include_typeahead === true) : ?>
    <!-- typeahead搜索自动补全 -->
    <script src="/ajax/libs/typeahead/bootstrap3-typeahead.min.js"></script>
<?php endif; ?>

<?php if (isset($include_jsonview) && $include_jsonview === true) : ?>
    <!-- jsonview格式化和语法高亮JSON格式数据查看插件 -->
    <link href="/ajax/libs/jsonview/jquery.jsonview.css" rel="stylesheet"/>
    <script src="/ajax/libs/jsonview/jquery.jsonview.js"></script>
<?php endif; ?>

<?php if (isset($include_steps) && $include_steps === true) : ?>
    <!-- jquery.steps表单向导插件 -->
    <link href="/ajax/libs/steps/jquery.steps.css" rel="stylesheet"/>
    <script src="/ajax/libs/steps/jquery.steps.min.js"></script>
<?php endif; ?>

<?php if (isset($include_echarts) && $include_echarts === true) : ?>
    <!-- ECharts百度统计图表插件 -->
    <script src="/ajax/libs/report/echarts/echarts-all.js"></script>
<?php endif; ?>

<?php if (isset($include_table_drag) && $include_table_drag === true) : ?>
    <!-- 表格拖拽插件 -->
    <script src="/ajax/libs/bootstrap-table/extensions/reorder/bootstrap-table-reorder.js"></script>
    <script src="/ajax/libs/bootstrap-table/extensions/reorder/jquery.tablednd.js"></script>
<?php endif; ?>

<?php if (isset($include_table_rowedit) && $include_table_rowedit === true) : ?>
    <!-- 表格行内编辑插件 -->
    <link href="/ajax/libs/bootstrap-table/extensions/editable/bootstrap-editable.css" rel="stylesheet"/>
    <script src="/ajax/libs/bootstrap-table/extensions/editable/bootstrap-editable.min.js"></script>
    <script src="/ajax/libs/bootstrap-table/extensions/editable/bootstrap-table-editable.js"></script>
<?php endif; ?>

<?php if (isset($include_moment) && $include_moment === true) : ?>
    <!-- moment js -->
    <script src="/js/moment.js"></script>
<?php endif; ?>

<?php if (isset($include_formjson) && $include_formjson === true) : ?>
    <!-- jquery serialize json -->
    <script src="/js/jquery.serializejson.js"></script>
<?php endif; ?>

<?php if (isset($include_clipboard) && $include_clipboard === true) : ?>
    <!-- clipboard 复制 -->
    <script src="/js/clipboard.min.js"></script>
<?php endif; ?>

<?php if (isset($include_tmpl) && $include_tmpl === true) : ?>
    <!-- jquery tmpl 复制 -->
    <script src="/js/jquery.tmpl.js"></script>
<?php endif; ?>

<?php if (isset($include_highlight) && $include_highlight === true) : ?>
    <!-- 代码高亮 -->
    <link href="/ajax/libs/highlight/styles/atom-one-dark.css" rel="stylesheet"/>
    <script src="/ajax/libs/highlight/highlight.pack.js"></script>
<?php endif; ?>
